#include "diary.hpp"

void Diary::AddText(string text, SDL_Color color){
    color.a = 255;
    Sentence sentence;
    sentence.text_ = move(text);
    sentence.color_ = move(color);
    _sentences.push_back(move(sentence));
}

Sentence Diary::GetTexts(int n){
    return _sentences[n];
}

void Diary::Draw(int x, int y){
    if(!_sentences.empty()){
        Sentence& s = _sentences.back();
        DrawText(s.text_, x, y, s.color_);
    }
}

Diary diary;
